package com.oracle.zebrafreelytraveling.utils.constant;

/**
 * Created by yydcnjjw on 2017/7/16.
 */

public class Constant {

   public static final String BASE_URL = "http://yydcnjjw.top/zebra/";
   public static final String WS_BASE_URL = "ws://yydcnjjw.top/zebra/";

//    public static String BASE_URL = "http://10.0.2.2:8080/";
//    public static String WS_BASE_URL = "ws://10.0.2.2:8080/";

    //foodinfo api
    public static final String FOOD_API = "http://apis.juhe.cn/";

//    public static final String FOOD_KEY = "0d58c731a15bf720ea672f79d380798b";
    public static final String FOOD_KEY = "0bab589dc93dcd18456fcdfcb800a78d";

    //view_spot api
    public static final String VIEW_API = "http://apis.haoservice.com/lifeservice/travel/";

//    public static final String VIEW_KEY = "c84787ec18954c3c9307fa94d6744899";
    public static final String VIEW_KEY = "d6211e9d7ad742ae90fc9f443b129ce9";
    //下载资源url
    public static final String DOWNLOAD_URL = BASE_URL + "download?rootDir=";
    //聊天接口
    public static final String WEB_SOCKET_CHAT_RING = WS_BASE_URL + "ChatSocketHandler";

    //请求成功返回0 失败 返回1
    public static final String REQUEST_SUCCESS = "0";
    public static final String REQUEST_FAULT = "1";
    public static final String JUHE_SUCCESS = "200";

    //api请求成功
    public static final int API_SUCCESS = 0;
    //群消息标识
    public static final String GROUP_MESSAGE = "0";
    //单聊
    public static final String SINGLE_MESSAGE = "1";
    //发送成功返回2
    public static final String SNED_SUCCESS = "2";
    //发送失败返回3
    public static final String SEND_FALSE = "3";

    //消息类型 是接收还是发送
    public static final int TYPE_RECEIVED = 0;
    public static final int TYPE_SEND = 1;

    //获取的最大页数
    public static final int MAX_PAGE = 10;
    //分类信息获取的最大页数
    public static final int PAGE_SIZE_CLASSIFY = 4;

    //更新数据类型 0:正常加载、下拉刷新   1: 加载更多
    public static final int GET_DATA_TYPE_NOMAL = 0;
    public static final int GET_DATA_TYPE_LOADMORE = 1;

    public static final int CODE_AMAP_SUCCESS = 1000;

    public static final int RES_COUNTRY = 0;
    public static final int RES_CITY = 1;

    public static final int FOOD = 2;//美食分类
    public static final int VIEW = 3;//景点分类

    //获取user列表的类型
    public static final int FRIEND_TYPE = 0;
    public static final int CONCERN_TYPE = 1;
    public static final int CIRCLE_TYPE = 2;

    public static final int SORT_TIME = 0;
    public static final int SORT_RECEVE = 1;

}
